﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Components/ContentWidget.h"
#include "Widget/SElementUIMessage.h"
#include "ElementUIMessage.generated.h"

/**
 * 
 */
UCLASS(meta=(DisplayName="Message"))
class ELEMENTUIUMG_API UElementUIMessage : public UContentWidget
{
	GENERATED_BODY()

public:
	virtual void SynchronizeProperties() override;

	UFUNCTION(BlueprintCallable,Category="ElementUI|ElementUIMessage")
    void ShowMessage();

	UFUNCTION(BlueprintCallable,Category="ElementUI|ElementUIMessage")
    void HideMessage();
protected:
	virtual void ReleaseSlateResources(bool bReleaseChildren) override;
	
#if WITH_EDITOR
	virtual const FText GetPaletteCategory() override;
#endif
	virtual TSharedRef<SWidget> RebuildWidget() override;
	virtual UClass* GetSlotClass() const override;
	virtual void OnSlotAdded(UPanelSlot* Slot) override;
	virtual void OnSlotRemoved(UPanelSlot* Slot) override;
	//~ Begin UVisual Interface
	// virtual void ReleaseSlateResources(bool bReleaseChildren) override;
	//~ End UVisual Interface

	//~ Begin UObject Interface
	// virtual void PostLoad() override;

	
private:
	TSharedPtr<SElementUIMessage> ElementUIMessage;
	// UPanelWidget
	

};
